package com.android.citynetworkpin.model.group;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/7/24.
 */

public abstract class CitySetDataCallback extends Callback<CitySetData> {

    @Override
    public CitySetData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        CitySetData data = new Gson().fromJson(string,CitySetData.class);
        return data;
    }
}